const express = require('express');
const router = express.Router();
const userController = require('../controllers/user.server.controller');

router
    .post('/login', userController.login)
    .get('/exists/:cname', userController.findByName)
    .post('/regist', userController.regist)
    .post('/update', userController.update)
    .get('/getComplain', userController.getComplain)
    .get('/logout', userController.logout)
    .get('/getSession',userController.getSession)
    .get('/logout',userController.logout)

module.exports = router;